/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ins.entity;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.thinkgem.jeesite.common.persistence.TreeEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 仪表盘Entity
 * @author fanqinglong
 * @version 2018-05-09
 */
public class InsDashboard extends TreeEntity<InsDashboard> {
	
	private static final long serialVersionUID = 1L;
	private String parentIds;		// parent_ids
	private String name;		// 名称
	private String type;    // 0 仪表盘 1 文件夹
	private User user;		// 所属用户
	
	public InsDashboard() {
		super();
	}

	public InsDashboard(String id){
		super(id);
	}

	@JsonBackReference
	public InsDashboard getParent() {
		return parent;
	}

	public void setParent(InsDashboard parent) {
		this.parent = parent;
	}
	
	@Length(min=0, max=2000, message="parent_ids长度必须介于 0 和 2000 之间")
	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
}